package cn.pro.jasmine.jdbc;

import java.sql.DriverManager;
import java.sql.SQLException;

public class AppJdbc {
    public static void main(String[] args) throws Exception {
        //加载mysql的驱动类
        Class.forName("com.mysql.jdbc.Driver");
        //
        String url = "jdbc:mysql://localhost:3306/test?useSSL=false";
        //MySQL的连接账号
        String username ="root";
        //MySQL的连接密码
        String password ="root";
        DriverManager.getConnection(url,username,password);

    }
}
